<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "plant".
 *
 * @property integer $plant_id
 * @property string $plant_name
 */
class Plant extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'plant';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['plant_name'], 'required'],
            [['plant_name'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'plant_id' => 'Plant ID',
            'plant_name' => 'Plant Name',
        ];
    }
}
